import { post } from '@/request/http'
import store from '@/store'

//平台公告

// 列表查询接口
export const NoticeDataList = (data) =>
  post(
    '/FTKJWLHYPT/platform/GetNoticeModelList',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            noEptid:store.state.user.FLT_UUID_DX_H,
            noTitle:data.noTitle,
            noContent:data.noContent
          }
        },
        PageIndexs: {
          FTKJWLHYPT:data.PageIndexs
        },
        PageSizes: {
          FTKJWLHYPT:data.PageSizes
        }
      }
    }
  )
// 新增
export const addNoticeData = ({
  noId,
  // noEptid,
  noTitle,
  noContent,
  noRemark,
  noIsdel,
  noVersion,
  // noInsertuser
}) =>
  post(
    '/FTKJWLHYPT/platform/AddNotice',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            noId,
            noEptid:store.state.user.FLT_UUID_DX_H,
            noTitle,
            noContent,
            noRemark,
            noIsdel,
            noVersion,
            noInsertuser:store.state.user.USR_CODE_DX_H
          }
        },
      }
    }
  )
  // 编辑
export const editNoticeData = ({
  noId,
  // noEptid,
  noTitle,
  noContent,
  noRemark,
  noIsdel,
  // noLstupduser
}) =>
  post(
    '/FTKJWLHYPT/platform/EditNotice',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            noId,
            noEptid:store.state.user.FLT_UUID_DX_H,
            noTitle,
            noContent,
            noRemark,
            noIsdel,
            noLstupduser:store.state.user.USR_CODE_DX_H
          }
        },
      }
    }
  )

// 删除
export const delNoticeData = ({
  noId,
  // noEptid,

}) =>
  post(
    '/FTKJWLHYPT/platform/DeleteNotice',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            noId,
            noEptid:store.state.user.FLT_UUID_DX_H,
          }
        },
      }
    }
  )

